package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应用使用记录对象 yx_app_usage_record
 * 
 * @author lingyu
 * @date 2024-03-05
 */
public class YxAppUsageRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备id */
    private String deviceId;

    /** 应用id */
    private Long appId;

    /** 使用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usageDate;

    /** 使用时长（单位毫秒） */
    @Excel(name = "使用时长", readConverterExp = "单=位毫秒")
    private Long usageTime;

    /** 启动次数 */
    @Excel(name = "启动次数")
    private Long launchCount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setAppId(Long appId) 
    {
        this.appId = appId;
    }

    public Long getAppId() 
    {
        return appId;
    }
    public void setUsageDate(Date usageDate) 
    {
        this.usageDate = usageDate;
    }

    public Date getUsageDate() 
    {
        return usageDate;
    }
    public void setUsageTime(Long usageTime) 
    {
        this.usageTime = usageTime;
    }

    public Long getUsageTime() 
    {
        return usageTime;
    }
    public void setLaunchCount(Long launchCount) 
    {
        this.launchCount = launchCount;
    }

    public Long getLaunchCount() 
    {
        return launchCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("appId", getAppId())
            .append("usageDate", getUsageDate())
            .append("usageTime", getUsageTime())
            .append("launchCount", getLaunchCount())
            .append("createTime", getCreateTime())
            .toString();
    }
}
